﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace EF_Orchard的底层
{
    /// <summary>
    /// 数据基类
    /// </summary>
    public abstract class RepositoryBase
    {
        protected readonly DbContext _db;
        /// <summary>
        /// 为ioc提供入口点,如果有ioc配置，则优先
        /// </summary>
        /// <param name="db"></param>
        /// <param name="logger"></param>
        protected RepositoryBase(DbContext db)
        {
            _db = db;
        }
    }
}